package bigdata;

import com.hazelcast.nio.serialization.Portable;
import com.hazelcast.nio.serialization.PortableFactory;

public class MyPortableFactory implements PortableFactory {

	@Override
	public Portable create(int classId) {
		switch (classId) {
		case 1:
			return new Rule();
		default:
			return null;
		}
	}

}
